import gcrouter from "./gcrouter";


export default [{
    path: '/',
    component: '../layouts/BlankLayout',
    routes: [{
        path: '/user',
        component: '../layouts/UserLayout',
        routes: [{
            path: '/user',
            redirect: '/user/login',
        },
        {
            name: '登录',
            path: '/user/login',
            component: './User/login',
        },
        {
            name: '注册',
            path: '/user/signin',
            component: './User/signin',
        },
        {
            name: '忘记密码',
            path: '/user/fogot',
            component: './User/fogot',
        }
        ],
    },
    {
        path: '/gc',
        component: '../layouts/GcCenter',
        routes: gcrouter
    },
    {
        path: '/',
        component: '../layouts/BasicLayout',
        routes: [{
            path: '/',
            redirect: '/welcome',
        },
        {
            path: '/welcome',
            name: '欢迎',
            component: './Welcome',
        },
        {
            path: '/support',
            name: '产品供应',
            component: './Support',
            routes: [{
                path: '/support',
                redirect: '/support/prod',
            },
            {
                path: '/support/prod',
                name: '产品',
                component: './Support/Prod',
            },
            {
                path: '/support/company',
                name: '公司',
                component: './Support/Company',
            }

            ]
        },
        {
            path: '/firm',
            name: '公司',
            component: '../layouts/Firm',
            routes: [{
                path: '/firm',
                redirect: '/firm/homepage',
            },
            {
                path: '/firm/homepage',
                name: '首页',
                component: './Firm/Homepage',
            },
            {
                path: '/firm/products',
                name: '产品列表',
                component: './Firm/Products',
            },
            {
                path: '/firm/case',
                name: '成功案例',
                component: './Firm/Case',
            },
            {
                path: '/firm/record',
                name: '诚信档案',
                component: './Firm/Record',
            },
            {
                path: '/firm/company',
                name: '公司信息',
                component: './Firm/Company',
            },
            {
                path: '/firm/contact',
                name: '联系方式',
                component: './Firm/Contact',
            },
            {
                path: '/firm/products/productDetail',
                name: '产品详情',
                component: './Firm/ProductDetail',
            }
            ]
        },
        ],
    },
    {
        component: './404',
    },
    ],
}

];